* Makefile.in (install-arch-indep): Handle space in locallisppath.
authorJan D. <jan.h.d@swipnet.se>
Sun, 29 Jul 2012 16:55:02 +0000 (18:55 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sun, 29 Jul 2012 16:55:02 +0000 (18:55 +0200)
* src/lread.c (init_lread): Remove if-statement in ifdef HAVE_NS before
setting sitelisp.

ChangeLog
Makefile.in
src/ChangeLog
src/lread.c

index 3103762848a7d1142e9dbf7583ee005c542544e1..2c0dfa058037fed6915ee91bb1acf63ce4b02a86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-29  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * Makefile.in (install-arch-indep): Handle space in locallisppath.
+
 2012-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        Use Gnulib environ module (Bug#9772).
index 95b0931087fc740cc71b3eb2cdc21630daa1d1d9..c6df480ce7cc55bcccd57e8b9534ed1867f58d6f 100644 (file)
@@ -285,9 +285,9 @@ removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
 # to just letting configure generate epaths.h from epaths.in in a
 # similar way to how Makefile is made from Makefile.in.
 epaths-force: FRC
-       @(standardlisppath=`echo ${standardlisppath} | ${removenullpaths}` ; \
-         locallisppath=`echo ${locallisppath} | ${removenullpaths}` ; \
-         buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ;  \
+       @(standardlisppath=`echo "${standardlisppath}" | ${removenullpaths}` ; \
+         locallisppath=`echo "${locallisppath}" | ${removenullpaths}` ; \
+         buildlisppath=`echo "${buildlisppath}" | ${removenullpaths}` ; \
          x_default_search_path=`echo ${x_default_search_path}`; \
          gamedir=`echo ${gamedir}`; \
          sed < ${srcdir}/src/epaths.in > epaths.h.$$$$         \
@@ -489,7 +489,8 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \
 ## http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00005.html
 install-arch-indep: install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
        umask 022 ; \
-         $(MKDIR_P) $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'`
+         eval sh -x $(MKDIR_P) \
+           "'$(DESTDIR)`echo ${locallisppath}|sed \"s,:,' '$(DESTDIR),g\"`'"
        -set ${COPYDESTS} ; \
        unset CDPATH; \
        $(set_installuser); \
index c33c133084bbc82e55f129a064861119781b5f45..28bc2c24e285438a9c4df097effc8dd1fd19595b 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-29  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * lread.c (init_lread): Remove if-statement in ifdef HAVE_NS before
+       setting sitelisp (Bug#12010).
+
 2012-07-29  Eli Zaretskii  <eliz@gnu.org>
 
        * w32heap.h (OS_9X): Renamed from OS_WINDOWS_95.
index 39378bb11dd40144f821c695b9eb942346740559..0db37d7492f6827bc0d1edad183383b6cd0ab6d1 100644 (file)
@@ -4121,12 +4121,7 @@ init_lread (void)
    difference between initialized and !initialized in this case,
    so we'll have to do it unconditionally when Vinstallation_directory
    is non-nil.  */
-#ifdef HAVE_NS
-  /* loadpath already includes the app-bundle's site-lisp.  */
-  if (!no_site_lisp && !egetenv ("EMACSLOADPATH") && !loadpath)
-#else
   if (!no_site_lisp && !egetenv ("EMACSLOADPATH"))
-#endif
     {
       Lisp_Object sitelisp;
       sitelisp = decode_env_path (0, PATH_SITELOADSEARCH);
@@ -4270,12 +4265,7 @@ init_lread (void)
           load_path_check ();
 
           /* Add the site-lisp directories at the front.  */
-#ifdef HAVE_NS
-          /* loadpath already includes the app-bundle's site-lisp.  */
-          if (!no_site_lisp && !loadpath)
-#else
           if (!no_site_lisp)
-#endif
             {
               Lisp_Object sitelisp;
               sitelisp = decode_env_path (0, PATH_SITELOADSEARCH);